// Copyright (c) 2015-present, salesforce.com, inc. All rights reserved
// Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license

@mixin button-shape($api-variant, $reassign: false) {
  @if $reassign == true {
    /*! @css-var-fallback padding-left */
    --slds-c-button-spacing-inline-start: var(--slds-c-button-#{$api-variant}-spacing-inline-start, var(--slds-c-button-#{$api-variant}-spacing-inlinestart, var(--sds-c-button-#{$api-variant}-spacing-inline-start, #{$spacing-medium})));

    /*! @css-var-fallback padding-right */
    --slds-c-button-spacing-inline-end: var(--slds-c-button-#{$api-variant}-spacing-inline-end, var(--slds-c-button-#{$api-variant}-spacing-inlineend, var(--sds-c-button-#{$api-variant}-spacing-inline-end, #{$spacing-medium})));
  } @else {
    padding-left: var(--slds-c-button-#{$api-variant}-spacing-inline-start, var(--sds-c-button-#{$api-variant}-spacing-inline-start, $spacing-medium));
    padding-right: var(--slds-c-button-#{$api-variant}-spacing-inline-end, var(--sds-c-button-#{$api-variant}-spacing-inline-end, $spacing-medium));
  }
  text-align: center;
  justify-content: center;
  transition: border 0.15s linear;
}

@mixin button-reset {
  font-size: inherit;
  color: inherit;
  line-height: inherit;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: inherit;
}
